package com.nmsl.mapper;

import com.nmsl.domain.TyPatient;
import com.nmsl.domain.TyRegistrationManagement;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;

import java.util.Date;
import java.util.List;

/**
* @author Lenovo
* @description 针对表【patient(患者表)】的数据库操作Mapper
* @createDate 2025-02-15 17:35:48
* @Entity com.nmsl.domain.Patient
*/
public interface TyPatientMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TyPatient record);

    int insertSelective(TyPatient record);

    TyPatient selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TyPatient record);

    int updateByPrimaryKey(TyPatient record);

    TyPatient selectByPatientId(Integer patientId);

    TyPatient selectByPrimaryKey2(Integer patientId);

    List<TyPatient> selectAllPatientInTime(@Param("departmentId") Integer departmentId,
                                           @Param("doctorId") Integer doctorId,
                                           @Param("registrationPeriod") String registrationPeriod,
                                           @Param("registrationDate") Date registrationDate);

    TyPatient selectBalanceByPatientId(Integer patientId);

    List<TyPatient> selectAllPatient();
}
